package br.com.canvasForAll.model.dao;

import java.util.List;
import java.util.Map;

import javax.ejb.Stateless;
import javax.inject.Named;

import br.com.canvasForAll.model.entity.Cor;
import br.com.canvasForAll.model.generic.dao.GenericCrudDao;
import br.com.canvasForAll.model.repository.CorRepository;

@Stateless
@Named("corRepository")
public class CorDao extends GenericCrudDao<Cor> implements CorRepository {

	public CorDao() {
		super(Cor.class);
	}

	@Override
	public Cor obterId(Long entityId) throws Exception {
		return super.obterPorId(entityId);
	}

	@Override
	public List<Cor> obterExemplo(String namedQuery,
			Map<String, Object> parametros) throws Exception {
		return super.obterPorExemplo(namedQuery, getParametros());
	}

}
